package com.kyivmohyla.kma2.dao.mapper;

import com.kyivmohyla.kma2.model.Equipment;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class EquipmentRowMapper implements RowMapper<Equipment> {

    @Override
    public Equipment mapRow(ResultSet rs, int line) throws SQLException {
        EquipmentResultSetExtractor extractor = new EquipmentResultSetExtractor();
        return extractor.extractData(rs);
    }

}
